<?php
/**
 * Pipahr
 *
 * @author Randy Zhao
 * @copyright 2013 pipahr.com
 */

/* controller based router */
// Calendar View
$this->create('calendar_home', '')->get()->action('PCalendarController', 'calendar');
$this->create('calendar_rejectview', 'interview')->get()->action('PCalendarController', 'rejectview');
$this->create('calendar_reject', 'reject')->post()->action('PCalendarController', 'reject');

// Calendar List View
$this->create('calendar_list', 'listview')->get()->action('PCalendarController', 'listview');
$this->create('calendar_interviewfeedback', 'interviewfeedback')->get()->action('PCalendarController', 'interviewfeedback');
$this->create('calendar_search', 'listview/search')->get()->action('PCalendarController', 'search');
$this->create('calendar_joblist', 'listview/joblist')->get()->action('PCalendarController', 'getjoblist');

$this->create('calendar_sendoffer', 'sendoffer')->post()->action('PCalendarController', 'sendoffer');

$this->create('calendar_setinterviewresult', 'setinterviewresult')->post()->action('PCalendarController', 'setinterviewresult');

$this->create('calendar_setofferresult', 'setofferresult')->post()->action('PCalendarController', 'setofferresult');

$this->create('calendar_declinesend', 'declinesend')->post()->action('PCalendarController', 'declinesend');

$this->create('calendar_setinterviewfeedback', 'setinterviewfeedback')->post()->action('PCalendarController', 'setinterviewfeedback');

$this->create('calendar_interviewfeedbackremind','interviewfeedbackremind')->post()->action('PCalendarController','interviewfeedbackremind');

$this->create('calendar_setentryresult', 'setentryresult')->post()->action('PCalendarController', 'setentryresult');

$this->create('calendar_uploadoffertplfile','uploadoffertplfile')->post()->action('PCalendarController', 'uploadoffertplfile');

$this->create('calendar_cancelevent','cancelevent')->post()->action('PCalendarController', 'cancelevent');

$this->create('calendar_uploadinterviewfile','uploadinterviewfile')->post()->action('PCalendarController', 'uploadinterviewfile');

$this->create('calendar_comfirmreject','comfirmreject')->post()->action('PCalendarController', 'comfirmreject');
